--- import type { GetStaticPaths } from "astro"; import { getCollection } from "astro:content"; import BlogSingleLayout from "@/layouts/BlogSingleLayout.astro"; export const getStaticPaths: GetStaticPaths = async () => { const entries = await getCollection("blog"); return entries.map((entry: any) => ({ params: { id: entry.id }, props: { entry }, })); }; const { entry } = Astro.props; ---